import lireg from "@/api/axios";
// 预警配置
export default {
  /**
 * @description: 获取投入类型管理类型树状图 *代表必填
 * @param {String/Number} page *
 * @param {String/Number} size *
 * @param {Object} entity {componyId: 1} *
 * @param {String} order 排序方式 ASC DESC 默认ASC
 * @param {String} sort 自定义排序方式 'createTime'
 * @return {Array}
 */
  // ------------------------------------------------------------------------------------
  //

  // 添加
  add(params) {
    return lireg.post('/v3/inventory/invcountDetail/add', params)
  },
  // 条件查询
  conditionQuery(params) {
    return lireg.post('/v3/inventory/invcountDetail/queryByCondition', params)
  },
  // ------------------------------------------------------------------------------------
  // 防疫详情条件查询
  conditionepidemicConfigMapper(params) {
    return lireg.post('/v3/inventory/invcountDetail/queryByCondition', params)
  },
  // 添加防疫详情
  addeqidMapper(params) {
    return lireg.post('/v3/inventory/invcountDetail/add', params)
  },
  // 修改防疫详情
  editeqidMapper(params) {
    return lireg.post('/v3/inventory/invcountDetail/edit', params)
  },
  queryOnHandQuantity(invcountNo, materialNo, stordocNo) {
    return lireg.get(`/v3/inventory/invcountDetail/queryOnHandQuantity?invcountNo=${invcountNo}&materialNo=${materialNo}&stordocNo=${stordocNo}`)
  },
  // 编号查询
  numberQuery(params) {
    return lireg.get(`/v3/inventory/batchFile/queryByNo?no=${params}`)
  }
}
